<?php

namespace App\Logging;

use Monolog\Handler\RotatingFileHandler as BaseHandler;

class SingleHandler extends BaseHandler
{
    /**
     * {@inheritdoc}
     */
    public function isHandling(array $record)
    {
        // 只打印本级别的log
        return $record['level'] == $this->level;
    }
}
